package com.linkvin.ec.hcs.dao.model.mdm;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 门店
 * </p>
 *
 * @author qichao
 * @since 2017-12-27
 */
@TableName("mdm_shop")
public class Shop extends Model<Shop> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 关联的机构ID
     */
	@TableField("org_id")
	private Integer orgId;
    /**
     * 备注
     */
	private String comment;
    /**
     * 创建时间
     */
	@TableField("gmt_create")
	private Date gmtCreate;
    /**
     * 更新时间
     */
	@TableField("gmt_update")
	private Date gmtUpdate;
    /**
     * 门店编码
     */
	@TableField("shop_code")
	private String shopCode;
    /**
     * 门店全名
     */
	@TableField("full_name")
	private String fullName;
    /**
     * 门店简称
     */
	@TableField("short_name")
	private String shortName;
    /**
     * 所属片区ID
     */
	@TableField("region_id")
	private String regionId;
    /**
     * 门店具体地址(文本)
     */
	@TableField("shop_addr_text")
	private String shopAddrText;
    /**
     * 门店坐标(纬度)
     */
	@TableField("shop_addr_x")
	private String shopAddrX;
    /**
     * 门店地址(经度)
     */
	@TableField("shop_addr_y")
	private String shopAddrY;
    /**
     * 门店类型ID（3s、4s）
     */
	@TableField("shop_type_id")
	private Integer shopTypeId;
    /**
     * 所属区域的文字描述（冗余字段）
     */
	@TableField("region_text")
	private String regionText;
    /**
     * 门店类型的文本描述（冗余字段）
     */
	@TableField("shop_type_text")
	private String shopTypeText;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getOrgId() {
		return orgId;
	}

	public void setOrgId(Integer orgId) {
		this.orgId = orgId;
	}

	public String getComment() {
		return comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

	public Date getGmtCreate() {
		return gmtCreate;
	}

	public void setGmtCreate(Date gmtCreate) {
		this.gmtCreate = gmtCreate;
	}

	public Date getGmtUpdate() {
		return gmtUpdate;
	}

	public void setGmtUpdate(Date gmtUpdate) {
		this.gmtUpdate = gmtUpdate;
	}

	public String getShopCode() {
		return shopCode;
	}

	public void setShopCode(String shopCode) {
		this.shopCode = shopCode;
	}

	public String getFullName() {
		return fullName;
	}

	public void setFullName(String fullName) {
		this.fullName = fullName;
	}

	public String getShortName() {
		return shortName;
	}

	public void setShortName(String shortName) {
		this.shortName = shortName;
	}

	public String getRegionId() {
		return regionId;
	}

	public void setRegionId(String regionId) {
		this.regionId = regionId;
	}

	public String getShopAddrText() {
		return shopAddrText;
	}

	public void setShopAddrText(String shopAddrText) {
		this.shopAddrText = shopAddrText;
	}

	public String getShopAddrX() {
		return shopAddrX;
	}

	public void setShopAddrX(String shopAddrX) {
		this.shopAddrX = shopAddrX;
	}

	public String getShopAddrY() {
		return shopAddrY;
	}

	public void setShopAddrY(String shopAddrY) {
		this.shopAddrY = shopAddrY;
	}

	public Integer getShopTypeId() {
		return shopTypeId;
	}

	public void setShopTypeId(Integer shopTypeId) {
		this.shopTypeId = shopTypeId;
	}

	public String getRegionText() {
		return regionText;
	}

	public void setRegionText(String regionText) {
		this.regionText = regionText;
	}

	public String getShopTypeText() {
		return shopTypeText;
	}

	public void setShopTypeText(String shopTypeText) {
		this.shopTypeText = shopTypeText;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "Shop{" +
			", id=" + id +
			", orgId=" + orgId +
			", comment=" + comment +
			", gmtCreate=" + gmtCreate +
			", gmtUpdate=" + gmtUpdate +
			", shopCode=" + shopCode +
			", fullName=" + fullName +
			", shortName=" + shortName +
			", regionId=" + regionId +
			", shopAddrText=" + shopAddrText +
			", shopAddrX=" + shopAddrX +
			", shopAddrY=" + shopAddrY +
			", shopTypeId=" + shopTypeId +
			", regionText=" + regionText +
			", shopTypeText=" + shopTypeText +
			"}";
	}
}
